package query;

import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.Serializable;

public abstract class AbstractQuery  implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = -411983876246835276L;

	private long id = System.currentTimeMillis();
	
	public ObjectOutputStream serverOutputStream = null;
	public ObjectInputStream serverInputStream =null;
	
	
	public ObjectInputStream getserverInputStream() {
		return serverInputStream;
	}

	public void setserverInputStream(ObjectInputStream serverInputStream) {
		this.serverInputStream = serverInputStream;
	}
	
	public ObjectOutputStream getServerOutputStream() {
		return serverOutputStream;
	}

	public void setServerOutputStream(ObjectOutputStream serverOutputStream) {
		this.serverOutputStream = serverOutputStream;
	}

	public abstract void doAction();
}
